namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    
    
    [Map("CHAINS")]
    public class CHAINS : ObjectRow {
        
        public CHAINS() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public CHAINS(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }

        [Key("ID",true,true)]
        public int ID
        {
            get
            {
                return (System.Int32)GetValue("ID");
            }
            set
            {
                SetValue("ID", value);
            }
        }
        
        [Field("CODE")]
        public string CODE {
            get {
                return (System.String)GetValue("CODE");
            }
            set {
                SetValue("CODE", value);
            }
        }
        
        [Field("DESCRIPTION")]
        public string DESCRIPTION {
            get {
                return (System.String)GetValue("DESCRIPTION");
            }
            set {
                SetValue("DESCRIPTION", value);
            }
        }
        
        [Field("DOMAIN_ID")]
        public decimal DOMAINID {
            get {
                return (System.Decimal)GetValue("DOMAINID");
            }
            set {
                SetValue("DOMAINID", value);
            }
        }
        
       

        [Field("Org_ID")]
        public System.Int32 OrgID
        {
            get
            {
                return (System.Int32)GetValue("OrgID");
            }
            set
            {
                SetValue("OrgID", value);
            }
        }

        [Field("REGION_ID")]
        public System.Int32 Region
        {
            get
            {
                return (System.Int32)GetValue("Region");
            }
            set
            {
                SetValue("Region", value);
            }
        }

        [Field("ADDRESS")]
        public System.String Address
        {
            get
            {
                return (System.String)GetValue("Address");
            }
            set
            {
                SetValue("Address", value);
            }
        }

        [Field("LINKMAN")]
        public System.String Linkman
        {
            get
            {
                return (System.String)GetValue("Linkman");
            }
            set
            {
                SetValue("Linkman", value);
            }
        }

        [Field("TELEPHONE")]
        public System.String Telephone
        {
            get
            {
                return (System.String)GetValue("Telephone");
            }
            set
            {
                SetValue("Telephone", value);
            }
        }

        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get
            {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set
            {
                SetValue("LAST_UPDATER", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public long LAST_UPDATE_TIME
        {
            get
            {
                return (long)GetValue("LAST_UPDATE_TIME", DateTime.Now);
            }
            set
            {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }

        [Field("CREATE_TIME")]
        public long CREATETIME
        {
            get
            {
                return (long)GetValue("CREATETIME", DateTime.Now);
            }
            set
            {
                SetValue("CREATETIME", value);
            }
        }

        [Field("ACTIVE")]
        public Boolean ACTIVE
        {
            get
            {
                return (System.Boolean)GetValue("ACTIVE", false);
            }
            set
            {
                SetValue("ACTIVE", value);
            }
        }

    }
}
